home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / Biomorph 0.77 / Complex src / complex.h < prev   
Encoding:
C/C++ Source or Header  |  1992-08-28  |  924 b   |  26 lines  |  [TEXT/ALFA]

  1. /*************************************************************
  2. *                                                            *
  3. * File:  complex.h -- contains routines for complex numbers. *
  4. *                                                            *
  5. *************************************************************/
  6.  
  7. #ifndef COMPLEX_H
  8. #define COMPLEX_H
  9. /** all header stuff goes after this line */
  10.  
  11. #include "mathtype.h"
  12.  
  13. typedef struct {
  14.     MathType i,          /* imaginary part */
  15.           r,             /* real part */
  16.           mag;           /* magnitude of complex number */
  17.      } ImagPt;
  18.  
  19. extern void    AddC(ImagPt *a, ImagPt *b, ImagPt *result);
  20. extern void    SubC(ImagPt *a, ImagPt *b, ImagPt *result);
  21. extern void   MultC(ImagPt *a, ImagPt *b, ImagPt *result);
  22. extern void SquareC(ImagPt *a, ImagPt *result);
  23. extern void   CubeC(ImagPt *a, ImagPt *result);
  24.  
  25. /* all header stuff goes above this line */
  26. #endif